import request from '@/utils/request'

// 查询域名分配的ip列表
export function listDomainip(query) {
  return request({
    url: '/system/domainip/list',
    method: 'get',
    params: query
  })
}

// 查询域名分配的ip详细
export function getDomainip(id) {
  return request({
    url: '/system/domainip/' + id,
    method: 'get'
  })
}

// 新增域名分配的ip
export function addDomainip(data) {
  return request({
    url: '/system/domainip',
    method: 'post',
    data: data
  })
}

// 修改域名分配的ip
export function updateDomainip(data) {
  return request({
    url: '/system/domainip',
    method: 'put',
    data: data
  })
}

// 删除域名分配的ip
export function delDomainip(id) {
  return request({
    url: '/system/domainip/' + id,
    method: 'delete'
  })
}
